package com.prince.web.controller;

import com.prince.aspect.AppLog;
import com.prince.enums.*;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.HashMap;
import java.util.Map;

@Controller
public class EnumController {
    /**
     * 功能描述: 入库类型
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findDirectionList")
    public ResponseEntity<Map<String,Object>> findDirectionList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", DirectionEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
    /**
     * 功能描述: 销售类型
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findSaleList")
    public ResponseEntity<Map<String,Object>> findSaleList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", SaleEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
    /**
     * 功能描述: 支付类型
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findPaymentTypeList")
    public ResponseEntity<Map<String,Object>> findPaymentTypeList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", PayTypeEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
    /**
     * 功能描述: 支付状态
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findPaymentStatusList")
    public ResponseEntity<Map<String,Object>> findPaymentStatusList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", PaymentStatusEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
    /**
     * 功能描述: 库存状态
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findShopStatusList")
    public ResponseEntity<Map<String,Object>> findShopStatusList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", ShopStatusEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
    /**
     * 功能描述: 商品类型  商品 赠品
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    @PostMapping("/findGiftList")
    public ResponseEntity<Map<String,Object>> findGiftList(){
        Map<String,Object> map = new HashMap<>();
        map.put("data", GiftEnum.getListData());
        return new ResponseEntity<Map<String,Object>>(map, HttpStatus.OK);
    }
}
